<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>确认订单</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
    <style></style>
</head>
<style>
    .cartBar {
	background-color: #FFF;
	height: 2.5rem;
	line-height: 2.5rem;
}
.cartBar .payBtn {
	color: #FFF;
	width: 5rem;
	height: 100%;
	text-align: center;
}
.cartBar .text {
	padding: 0 0.75rem;
	text-align: right;
	line-height: 1.5;
}
</style>

<body>
    <header class="aui-bar aui-bar-nav aui-bar-light" id="header">
        <div class="aui-pull-left back" tapmode onclick="api.closeWin()"></div>
        <div class="aui-title">确认订单</div>
    </header>
    <div class="btmFix" id="footer">
		<div class="cartBar aui-flex-col aui-flex-middle aui-padded-l-15">
			<div class="flex-auto text">
				<div>合计：<span class="color-red aui-font-size-15">¥<span id="totalPrice">0</span></span></div>
				<!-- <div class="aui-font-size-10 color-666">自购减¥159.20</div> -->
			</div>
			<div class="payBtn bg-red" tapmode onclick="save();">立即支付</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../../script/import.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
        var header = $api.byId('header');
        $api.fixStatusBar(header);
        var headerH = $api.offset(header).h;
        var footerH = $api.offset($api.byId('footer')).h;
        api.openFrame({
            name: 'confirm_frm',
            url: 'confirm_frm.html',
            rect: {
                x: 0,
                y: headerH,
                w: 'auto',
                h: api.winHeight - headerH - footerH
			},
			bgColor: '#f5f5f5',
            pageParam: api.pageParam
		});
		$$('#totalPrice').text(api.pageParam.goodsInfo.totalPrice);
    };

    function save() {
        api.execScript({
			frameName: 'confirm_frm',
			script:'save();'
		});
    }
</script>

</html>